using System;
using System.Data;
using System.Data.Sql;
using System.Data.SqlClient;
using System.Collections.Generic;
using System.Text;

namespace StudentManagementApplication.Business
{
    public class MarksService 
    {
        private DAO.MarksDAO marksDAO = new DAO.MarksDAO();

        public void InsertMarks(Entities.Marks marks)
        {
            marksDAO.InsertMarks(marks);
        }

        public void UpdateMarks(Entities.Marks marks)
        {
            marksDAO.UpdateMarks(marks);
        }

        public void DeleteMarks(string sStudentID)
        {
            marksDAO.DeleteMarks(sStudentID);
        }

        public Entities.Marks GetMarksByStudentID(string sStudentID)
        {
            return marksDAO.GetMarksByStudentID(sStudentID);
        }

        public List<Entities.Marks> GetAllMarks()
        {
            return marksDAO.GetAllMarks();
        }

        public DataTable GetAllMarks2()
        {
            return marksDAO.GetAllMarks2();
        }

        public DataTable GetMarksByCourseID(string sCourseID)
        {
            return marksDAO.GetMarksByCourseID(sCourseID);
        }

        public DataTable GetMarksByClassID(string sClassID)
        {
            return marksDAO.GetMarksByClassID(sClassID);
        }

        public DataTable GetMarksByCourseIDAndClassID(string sCourseID, string sClassID)
        {
            return marksDAO.GetMarksByCourseIDAndClassID(sCourseID,sClassID);
        }

        public DataTable GetMarksByCourseIDAndClassID1(string sCourseID, string sClassID)
        {
            return marksDAO.GetMarksByCourseIDAndClassID1(sCourseID, sClassID);
        }
    }
}
